package org.tinygroup.fulltext;

/**
 * 指定字段的自定义搜索规则
 * @author yancheng11334
 *
 */
public class FieldRule extends DefaultRule{

	private  String name;

	public FieldRule() {
		super();
	}

	public FieldRule(String name,String rule,QueryRelation relation,QueryType type) {
		super();
		this.name = name;
		setRule(rule);
		setRelation(relation);
		setType(type);
	}



	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return "FieldRule [name=" + name + ", rule=" + getRule()
				+ ", relation=" + getRelation() + ", type="
				+ getType() + "]";
	}

}
